/* 流程发起演示接口 */

/* 根据业务编码查询业务与流程授权的详情信息 */
export const findOneByCode = (data)=>{
  return axios({
    url:`/workflow/config/processBusiness/findOneByCode?sysCode=${data.sysCode}&businessCode=${data.businessCode}`,
    method:'get'
  })
}
/* 获取单据列表 */
export const findListDatas = (datas,data)=>{
  return axios({
    url:`/workflowdDemo/findList/${datas.page}/${datas.pagesize}`,
    method:'post',
    data
  })
}
/* 修改单据 */
export const workflowdDemoUpate = (data)=>{
  return axios({
    url:'/workflowdDemo/upate',
    method:'put',
    data
  })
}
/* 新增单据 */
export const workflowdDemoInsert = (data)=>{
  return axios({
    url:'/workflowdDemo/insert',
    method:'post',
    data
  })
}
/* 根据id删除单据 */
export const workflowdDemoDelete =(data)=>{
  return axios({
    url:`/workflowdDemo/delete/${data}`,
    method:'delete'
  })
}
/* 更新单据状态 */
export const updateApprovalStatus = (data)=>{
  return axios({
    url:`/workflowdDemo/updateApprovalStatus?applyId=${data.applyId}&approveStatus=${data.approveStatus}&approveStatusDesc=${data.approveStatusDesc}&instanceId=${data.instanceId}`,
    method:'put'
  })
}
/* 审批待办 */
export const workflowCompleteTask = (data)=>{
  return axios({
    url:'/workflow/completeTask',
    method:'post',
    data
  })
}
/* 提交修成 */
export const workflowProcessSubmit =(data)=>{
  return axios({
    url:'/workflow/processSubmit',
    method:'post',
    data
  })
}
